<div class="header" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
  <div class="top_info">
  	<f:subview id="headerrightnotlogged" rendered="#{not identity.loggedIn}">
	    <div class="top_info_right">
		      <p>
		      <b>You are not Logged in! </b><s:link view="/login.xhtml">Log in</s:link> to acess the services.<br />
		      Do you want to<f:verbatim>&amp;nbsp;</f:verbatim><s:link view="/login.xhtml" propagation="none">Log in</s:link>
		      <f:verbatim>&amp;nbsp;</f:verbatim>or<f:verbatim>&amp;nbsp;</f:verbatim>
		      <s:link view="/register.xhtml">register</s:link>?
		      </p>  	
	  	</div>
  	</f:subview>
  	
  	<f:subview id="headerrightloggedin" rendered="#{identity.loggedIn}">
	    <div class="top_info_right">
		      <p><h:outputText value="#{user.loginName}"/>, <s:link action="#{authenticator.logout}" value="logout"/></p>  	
	  	</div>
  	</f:subview>
	
    <div class="top_info_left">
      <p><h:outputLabel value="#{currentDatetime}"><s:convertDateTime type="both" dateStyle="medium" /></h:outputLabel><br />
      
      <h:outputText value="#{messages.header_checktoday}"/><h:outputLink value="" ><h:outputText value="#{messages.header_newservices}"/></h:outputLink></p>
    </div>
  </div>
  <div class="logo">
    <h1><s:link view="/home.html" title="Phone services" propagation="none"><span class="dark">Ring</span> the web</s:link></h1>
  </div>
</div>